import request from '../utils/request';

export const paymentApi = (data) => {
    return request({
        url: '/uti/payment/set-up-payment',
        method: 'post',
        data
    });
};

export const test = () => {
    return request({
        url: '/uti/payment/create-setup-intent',
        method: 'post',
    });
};
export const getStepsApi = (data) => {
    return request({
        url: '/uti/payment/setup-steps',
        method: 'get',
        headers:{
            'Content-Type': 'multipart/form-data'
        },
        data
    });
};
export const getProductNameApi = (name) => {
    return request({
        url: '/uti/payment/uti-product-display' ,
        method: 'get',
        params:{
            sku: name
        }
    });
};
export const getStates = () => {
    return request({
        url: '/uti/payment/us-postal-states' ,
        method: 'get',
 
    });
};
export const getLastFour = (data) => {
    return request({
        url: '/uti/payment/card-last-4' ,
        method: 'post',
        headers:{
            'Content-Type': 'multipart/form-data'
        },
        data
 
    });
};
export const postInsuanceResponse = (data) => {
    return request({
        url: '/uti/payment/insurance-improve' ,
        method: 'post',
        headers:{
            'Content-Type': 'multipart/form-data'
        },
        data
 
    });
};
export const postDtaBystep = (url,data) => {
    return request({
        url: url,
        method: 'post',
        headers:{
            'Content-Type': 'multipart/form-data'
        },
        data
    });
};


